package gd.qaq.blue.bluespick.dto;

import lombok.Data;
import org.bukkit.inventory.ItemStack;

import java.util.Collection;
import java.util.List;

/**
 * 采集物数据
 * final String sql = "CREATE TABLE `tb_picks` ( " +
 * "  `id` integer PRIMARY KEY autoincrement,  " +
 * "  `areaName` varchar NOT NULL,\n" +
 * "  `pickItemId` varchar NOT NULL,\n" +
 * "  `pickTime` varchar NOT NULL,\n" +
 * "  `replaceTime` varchar NOT NULL)";
 */
@Data
public class PickBlockData {
    private String world;
    private List<gd.qaq.blue.bluespick.entity.ItemStack> drops;
    private AreaData areaData;
    private String pickName;
    private String pickItemId;
    private Double pickTime;
    private Double replaceTime;
    private Double x;
    private Double y;
    private Double z;
    private List<gd.qaq.blue.bluespick.entity.ItemStack> needs;

    public PickBlockData(String world,Double x,Double y,Double z,AreaData areaData,String pickName, String pickItemId, Double pickTime, Double replaceTime, List<gd.qaq.blue.bluespick.entity.ItemStack> drops,List<gd.qaq.blue.bluespick.entity.ItemStack> needItems) {
        this.world = world;
        this.x = x;
        this.y = y;
        this.z = z;
        this.areaData = areaData;
        this.pickItemId = pickItemId;
        this.pickName = pickName;
        this.pickTime = pickTime;
        this.replaceTime = replaceTime;
        this.needs = needItems;
        this.drops = drops;
    }
}
